Model run by trashe using Apollo 0.4.0 on R 4.5.3 for Linux. Please acknowledge the use of Apollo by citing Hess & Palma (2019) DOI 10.1016/j.jocm.2019.100170 www.ApolloChoiceModelling.com Model name : FMNL_grouped_shares Model description : Fractional MNL model on mode choice SP data grouped by scenario, with shares weighted by the number of observations Model run at : 2026-11-02 21:59:01 Estimation method : bgw Estimation diagnosis : Relative function convergence (favorable) Optimisation diagnosis : Maximum found hessian properties : Negative definite maximum eigenvalue : -3.296394 reciprocal of condition number : 2.99391e-08 Number of individuals : 1322 Number of rows in database : 1322 Number of modelled outcomes : 1322 Sum of weights : 7000 (BIC uses the number of modelled outcomes) Number of cores used : 1 Model without mixing LL(start) : -8196.02 LL at equal shares, LL(0) : -8196.02 LL at observed shares, LL(C) : Not applicable LL(final) : -5598.9 Rho-squared vs equal shares : 0.3169 Adj.Rho-squared vs equal shares : 0.3155 Rho-squared vs observed shares : Not applicable Adj.Rho-squared vs observed shares : Not applicable AIC : 11219.8 BIC : 11276.86 Estimated parameters : 11 Time taken (hh:mm:ss) : 00:00:0.75 pre-estimation : 00:00:0.48 estimation : 00:00:0.11 post-estimation : 00:00:0.16 Iterations : 13 Unconstrained optimisation. Estimates: Estimate s.e. t.rat.(0) Rob.s.e. Rob.t.rat.(0) asc_car 0.000000 NA NA NA NA asc_bus 0.062425 0.538550 0.1159 0.554945 0.1125 asc_air 0.238290 0.340124 0.7006 0.361770 0.6587 asc_rail -1.481357 0.327325 -4.5257 0.359699 -4.1183 b_tt_car -0.011602 6.5322e-04 -17.7613 7.3232e-04 -15.8429 b_tt_bus -0.017368 0.001452 -11.9630 0.001455 -11.9332 b_tt_air -0.019483 0.002587 -7.5300 0.002747 -7.0925 b_tt_rail -0.006365 0.001704 -3.7350 0.001834 -3.4707 b_access -0.023193 0.002689 -8.6265 0.002728 -8.5003 b_cost -0.058756 0.001487 -39.5175 0.001624 -36.1788 b_no_frills 0.000000 NA NA NA NA b_wifi 0.937556 0.052981 17.6961 0.058262 16.0920 b_food 0.409559 0.052180 7.8489 0.056288 7.2762 Overview of choices for FMNL model component : car bus air rail Times available 832.00 978.00 837.00 946.00 Observations with non-zero share 658.00 254.00 543.00 786.00 Average share overall 0.29 0.07 0.23 0.41 Average share when available 0.45 0.09 0.37 0.58 Classical covariance matrix: asc_bus asc_air asc_rail b_tt_car b_tt_bus asc_bus 0.29004 0.033491 0.027795 9.467e-05 -7.1333e-04 asc_air 0.03349 0.115685 0.049672 1.3200e-04 3.724e-05 asc_rail 0.02779 0.049672 0.107141 1.3847e-04 4.386e-05 b_tt_car 9.467e-05 1.3200e-04 1.3847e-04 4.267e-07 1.188e-07 b_tt_bus -7.1333e-04 3.724e-05 4.386e-05 1.188e-07 2.108e-06 b_tt_air -2.329e-05 -6.2688e-04 -2.902e-05 -5.668e-08 -2.330e-08 b_tt_rail 1.913e-05 1.726e-05 -4.2599e-04 -4.990e-08 -4.995e-08 b_access -4.894e-05 -5.2591e-04 -3.751e-05 -1.837e-08 -9.771e-08 b_cost 2.028e-05 -8.220e-05 -3.463e-05 2.468e-07 2.528e-07 b_wifi -3.5986e-04 -0.002317 -0.001517 -5.838e-06 -5.052e-06 b_food -2.1650e-04 -0.001440 -0.001485 -3.034e-06 -2.417e-06 b_tt_air b_tt_rail b_access b_cost b_wifi asc_bus -2.329e-05 1.913e-05 -4.894e-05 2.028e-05 -3.5986e-04 asc_air -6.2688e-04 1.726e-05 -5.2591e-04 -8.220e-05 -0.002317 asc_rail -2.902e-05 -4.2599e-04 -3.751e-05 -3.463e-05 -0.001517 b_tt_car -5.668e-08 -4.990e-08 -1.837e-08 2.468e-07 -5.838e-06 b_tt_bus -2.330e-08 -4.995e-08 -9.771e-08 2.528e-07 -5.052e-06 b_tt_air 6.695e-06 -2.508e-07 2.329e-06 9.027e-07 -3.184e-06 b_tt_rail -2.508e-07 2.904e-06 -5.919e-07 5.224e-07 -9.591e-06 b_access 2.329e-06 -5.919e-07 7.228e-06 6.306e-07 -4.147e-06 b_cost 9.027e-07 5.224e-07 6.306e-07 2.211e-06 -1.845e-05 b_wifi -3.184e-06 -9.591e-06 -4.147e-06 -1.845e-05 0.002807 b_food -5.193e-06 -4.345e-06 -4.198e-06 -1.052e-05 0.001523 b_food asc_bus -2.1650e-04 asc_air -0.001440 asc_rail -0.001485 b_tt_car -3.034e-06 b_tt_bus -2.417e-06 b_tt_air -5.193e-06 b_tt_rail -4.345e-06 b_access -4.198e-06 b_cost -1.052e-05 b_wifi 0.001523 b_food 0.002723 Robust covariance matrix: asc_bus asc_air asc_rail b_tt_car b_tt_bus asc_bus 0.307964 0.053033 0.043808 1.3027e-04 -7.2057e-04 asc_air 0.053033 0.130878 0.062621 1.6124e-04 1.387e-05 asc_rail 0.043808 0.062621 0.129384 1.7640e-04 3.155e-05 b_tt_car 1.3027e-04 1.6124e-04 1.7640e-04 5.363e-07 1.275e-07 b_tt_bus -7.2057e-04 1.387e-05 3.155e-05 1.275e-07 2.118e-06 b_tt_air -7.398e-05 -6.8631e-04 -3.599e-05 1.555e-08 1.738e-07 b_tt_rail -4.626e-06 -6.624e-06 -4.9838e-04 -7.766e-08 2.871e-08 b_access -1.4408e-04 -5.6757e-04 -4.623e-05 -8.705e-08 7.232e-08 b_cost 8.527e-05 -7.261e-05 -6.057e-05 3.178e-07 1.768e-07 b_wifi -0.002065 -0.003022 -0.001181 -6.677e-06 -1.195e-06 b_food 7.5706e-04 -0.001565 -9.1473e-04 -2.648e-06 -5.330e-06 b_tt_air b_tt_rail b_access b_cost b_wifi asc_bus -7.398e-05 -4.626e-06 -1.4408e-04 8.527e-05 -0.002065 asc_air -6.8631e-04 -6.624e-06 -5.6757e-04 -7.261e-05 -0.003022 asc_rail -3.599e-05 -4.9838e-04 -4.623e-05 -6.057e-05 -0.001181 b_tt_car 1.555e-08 -7.766e-08 -8.705e-08 3.178e-07 -6.677e-06 b_tt_bus 1.738e-07 2.871e-08 7.232e-08 1.768e-07 -1.195e-06 b_tt_air 7.546e-06 -6.484e-08 2.658e-06 1.037e-06 -2.123e-06 b_tt_rail -6.484e-08 3.363e-06 -6.696e-07 8.652e-07 -1.623e-05 b_access 2.658e-06 -6.696e-07 7.445e-06 4.896e-07 -1.094e-05 b_cost 1.037e-06 8.652e-07 4.896e-07 2.638e-06 -1.604e-05 b_wifi -2.123e-06 -1.623e-05 -1.094e-05 -1.604e-05 0.003394 b_food -8.780e-06 -1.038e-05 -7.062e-08 -1.104e-05 0.001892 b_food asc_bus 7.5706e-04 asc_air -0.001565 asc_rail -9.1473e-04 b_tt_car -2.648e-06 b_tt_bus -5.330e-06 b_tt_air -8.780e-06 b_tt_rail -1.038e-05 b_access -7.062e-08 b_cost -1.104e-05 b_wifi 0.001892 b_food 0.003168 Classical correlation matrix: asc_bus asc_air asc_rail b_tt_car b_tt_bus asc_bus 1.000000 0.18284 0.15767 0.26910 -0.912310 asc_air 0.182838 1.00000 0.44617 0.59414 0.075416 asc_rail 0.157674 0.44617 1.00000 0.64759 0.092300 b_tt_car 0.269105 0.59414 0.64759 1.00000 0.125273 b_tt_bus -0.912310 0.07542 0.09230 0.12527 1.000000 b_tt_air -0.016717 -0.71232 -0.03427 -0.03353 -0.006203 b_tt_rail 0.020843 0.02978 -0.76369 -0.04482 -0.020190 b_access -0.033799 -0.57511 -0.04262 -0.01046 -0.025032 b_cost 0.025330 -0.16254 -0.07115 0.25409 0.117098 b_wifi -0.012612 -0.12856 -0.08749 -0.16868 -0.065679 b_food -0.007704 -0.08111 -0.08697 -0.08902 -0.031903 b_tt_air b_tt_rail b_access b_cost b_wifi asc_bus -0.016717 0.02084 -0.03380 0.02533 -0.01261 asc_air -0.712320 0.02978 -0.57511 -0.16254 -0.12856 asc_rail -0.034267 -0.76369 -0.04262 -0.07115 -0.08749 b_tt_car -0.033533 -0.04482 -0.01046 0.25409 -0.16868 b_tt_bus -0.006203 -0.02019 -0.02503 0.11710 -0.06568 b_tt_air 1.000000 -0.05688 0.33475 0.23465 -0.02323 b_tt_rail -0.056883 1.00000 -0.12919 0.20618 -0.10622 b_access 0.334752 -0.12919 1.00000 0.15776 -0.02911 b_cost 0.234654 0.20618 0.15776 1.00000 -0.23420 b_wifi -0.023226 -0.10622 -0.02911 -0.23420 1.00000 b_food -0.038465 -0.04887 -0.02993 -0.13558 0.55090 b_food asc_bus -0.007704 asc_air -0.081109 asc_rail -0.086968 b_tt_car -0.089020 b_tt_bus -0.031903 b_tt_air -0.038465 b_tt_rail -0.048867 b_access -0.029926 b_cost -0.135578 b_wifi 0.550904 b_food 1.000000 Robust correlation matrix: asc_bus asc_air asc_rail b_tt_car b_tt_bus asc_bus 1.000000 0.264159 0.21947 0.320540 -0.89212 asc_air 0.264159 1.000000 0.48123 0.608607 0.02635 asc_rail 0.219466 0.481226 1.00000 0.669679 0.06026 b_tt_car 0.320540 0.608607 0.66968 1.000000 0.11965 b_tt_bus -0.892121 0.026346 0.06026 0.119645 1.00000 b_tt_air -0.048529 -0.690594 -0.03642 0.007730 0.04347 b_tt_rail -0.004546 -0.009985 -0.75552 -0.057827 0.01075 b_access -0.095158 -0.575006 -0.04710 -0.043567 0.01821 b_cost 0.094613 -0.123589 -0.10369 0.267201 0.07478 b_wifi -0.063881 -0.143369 -0.05636 -0.156490 -0.01409 b_food 0.024236 -0.076841 -0.04518 -0.064239 -0.06507 b_tt_air b_tt_rail b_access b_cost b_wifi asc_bus -0.048529 -0.004546 -0.09516 0.09461 -0.06388 asc_air -0.690594 -0.009985 -0.57501 -0.12359 -0.14337 asc_rail -0.036418 -0.755515 -0.04710 -0.10369 -0.05636 b_tt_car 0.007730 -0.057827 -0.04357 0.26720 -0.15649 b_tt_bus 0.043468 0.010754 0.01821 0.07478 -0.01409 b_tt_air 1.000000 -0.012870 0.35458 0.23249 -0.01326 b_tt_rail -0.012870 1.000000 -0.13383 0.29048 -0.15193 b_access 0.354577 -0.133825 1.00000 0.11048 -0.06879 b_cost 0.232490 0.290484 0.11048 1.00000 -0.16951 b_wifi -0.013263 -0.151926 -0.06879 -0.16951 1.00000 b_food -0.056780 -0.100582 -4.5983e-04 -0.12082 0.57704 b_food asc_bus 0.02424 asc_air -0.07684 asc_rail -0.04518 b_tt_car -0.06424 b_tt_bus -0.06507 b_tt_air -0.05678 b_tt_rail -0.10058 b_access -4.5983e-04 b_cost -0.12082 b_wifi 0.57704 b_food 1.00000 Settings and functions used in model definition: apollo_control -------------- Value modelName "FMNL_grouped_shares" modelDescr "Fractional MNL model on mode choice SP data grouped by scenario, with shares weighted by the number of observations" indivID "scenario" weights "n_obs" outputDirectory "output/" debug "FALSE" nCores "1" workInLogs "FALSE" seed "13" mixing "FALSE" HB "FALSE" noValidation "FALSE" noDiagnostics "FALSE" calculateLLC "TRUE" analyticHessian "FALSE" dropLoopExpansion "FALSE" dropRedefCheck "FALSE" panelData "FALSE" analyticGrad "TRUE" analyticGrad_manualSet "FALSE" overridePanel "FALSE" preventOverridePanel "FALSE" noModification "FALSE" Hessian routines attempted -------------------------- numerical jacobian of LL analytical gradient apollo_probabilities ---------------------- function (apollo_beta, apollo_inputs, functionality = "estimate") { apollo_attach(apollo_beta, apollo_inputs) on.exit(apollo_detach(apollo_beta, apollo_inputs)) P = list() V = list() V[["car"]] = asc_car + b_tt_car * time_car + b_cost * cost_car V[["bus"]] = asc_bus + b_tt_bus * time_bus + b_access * access_bus + b_cost * cost_bus V[["air"]] = asc_air + b_tt_air * time_air + b_access * access_air + b_cost * cost_air + b_no_frills * (service_air == 1) + b_wifi * (service_air == 2) + b_food * (service_air == 3) V[["rail"]] = asc_rail + b_tt_rail * time_rail + b_access * access_rail + b_cost * cost_rail + b_no_frills * (service_rail == 1) + b_wifi * (service_rail == 2) + b_food * (service_rail == 3) fmnl_settings = list(alternatives = c("car", "bus", "air", "rail"), avail = list(car = av_car, bus = av_bus, air = av_air, rail = av_rail), choiceShares = list(car = share_car, bus = share_bus, air = share_air, rail = share_rail), utilities = V) P[["model"]] = apollo_fmnl(fmnl_settings, functionality) P = apollo_weighting(P, apollo_inputs, functionality) P = apollo_prepareProb(P, apollo_inputs, functionality) return(P) }